#ifndef _DATAIO_H_
#define _DATAIO_H_

#include <stddef.h>

class DataInput {
public:
	virtual char read() = 0;
	virtual size_t available() = 0;
	virtual void clear() = 0;
};

class DataOutput {
public:
	// virtual void write(char data) = 0;
	virtual size_t freeSpace() = 0;
	virtual bool tryWrite(char data) = 0;
	// void flush();
};

#endif
